package com.iretailer.report.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.iretailer.report.mapper.RoleMenuMapper;
import com.iretailer.report.model.RoleMenu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: xjw
 * @Date: 2019/2/21 17:17
 * @Description:
 */
@Service
public class RoleMenuService extends ServiceImpl<RoleMenuMapper, RoleMenu> {

    @Autowired
    private RoleMenuMapper roleMenuMapper;

    public int insertBatchRolesMenus(String roleId, List<String> menuIds) {
        return roleMenuMapper.insertBatchRolesMenus(roleId, menuIds);
    }
}
